﻿using System.Data;

namespace Marmat.Forms.Views
{
    namespace DataGrid
    {
        public class RowHeightEventArgs : Grid.RowHeightEventArgs
        {
            internal RowHeightEventArgs(DevExpress.XtraGrid.Views.Grid.RowHeightEventArgs info) : base(info)
            {
            }

            public new Row Row
            {
                get
                {
                    if (this._DataRow is null)
                    {
                        DataRowView RowView = (DataRowView)base.Row;
                        this._DataRow = new Row((Forms.DataGrid)_GridControl, RowView.Row);
                    }

                    return this._DataRow;
                }
            }

            private Row _DataRow;
        }
    }
}